import Mock from 'mockjs'

const data = Mock.mock({
  'items|50': [{
    id: '@id',
    openId: '@id',
    'status|1': [0, 1, 2, 3],
    dish: '@String',
    price: '100.0',
    oderTime: '@datetime'
  }]
})

export default [
  {
    url: '/order',
    type: 'get',
    response: config => {
      const items = data.items
      return {
        code: 200,
        data: items
      }
    }
  }
]
